package fr.playsoft.psas;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import com.adbox.AdBoxLibrary;
import com.adbox.AdBoxOptions;

public class SFRActivity extends Activity {
	
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.sfrads);
		
		setupAds();
	}

	private void setupAds() {
		AdBoxOptions options = new AdBoxOptions();

		options.setSupportRotation(false);
		options.setCacheEnabled(false);
		options.setTypeAnimation(AdBoxOptions.AD_BOX_ANIMATION_FLIP);
		options.setDefaultImage(getResources().getDrawable(R.drawable.loading_icon));

		AdBoxLibrary.addSmallBanner(this, SFRAdsConstants.PUB_PID, SFRAdsConstants.PUB_PHOTOS_ID, 
				options, (ImageView) findViewById(R.id.imgAds));
		
	}
	
}
